package com.fishery.memo.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Time;
import java.util.Date;

/**
 * @author run
 * @since 2021/1/30 12:18
 */
public class TaskVo {

    @ApiModelProperty(value = "任务编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "任务提醒所要发送到的用户id")
    private String userId;

    @ApiModelProperty(value = "任务提醒内容(100字内)")
    private String taskContent;

    @ApiModelProperty(value = "任务定时提醒的时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="HH:mm:ss")
    private Time taskTime;

    @ApiModelProperty(value = "任务定时提醒的为周几(如3代表星期三，0代表每周的每天)")
    private Integer taskWeekday;

    @ApiModelProperty(value = "任务状态（0为暂停，1为执行中）")
    private Integer status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTaskContent() {
        return taskContent;
    }

    public void setTaskContent(String taskContent) {
        this.taskContent = taskContent;
    }

    public Time getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(Time taskTime) {
        this.taskTime = taskTime;
    }

    public Integer getTaskWeekday() {
        return taskWeekday;
    }

    public void setTaskWeekday(Integer taskWeekday) {
        this.taskWeekday = taskWeekday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TaskVo{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", taskContent='" + taskContent + '\'' +
                ", taskTime=" + taskTime +
                ", taskWeekday=" + taskWeekday +
                ", status=" + status +
                '}';
    }
}
